import request from '@/utils/request'

// 列表
export function getList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/jpManagement/brandStyle/page', data)
}

/**
 * 新增
 * @param {*} data
 */
export function save(data) {
  return request.post('/sq/jpManagement/brandStyle/save', data)
}

/**
 * 更新
 * @param {*} data
 */
export function update(data) {
  return request.put('/sq/jpManagement/brandStyle/update', data)
}
/**
 * 删除
 * @param {*} id
 */
export function deleteById(id) {
  return request.delete(`/sq/jpManagement/brandStyle/${id}`)
}
